<template>
  <div class="monthsBox">
    <div class="salesBox">
      <div class="salesText">{{ item.salesText }}</div>
      <div class="money"><span class="yuan"> ¥ </span>{{ item.marketMoney || 0 }}</div>
    </div>
    <div class="salesBox">
      <div class="salesText">{{ item.deal }}</div>
      <div class="order">{{ item.orderCount || 0 }}<!-- <span class="dan">单</span> --></div>
    </div>
    <div class="salesBox">
      <div class="salesText">{{ item.transactionNum }}</div>
      <div class="order">{{ item.comboNum || 0 }}<!-- <span class="fen">份</span> --></div>
    </div>
    <div class="shuxian"></div>
    <div class="shuxian2"></div>
  </div>
</template>

<script setup>
import { ref, reactive } from 'vue'

const props = defineProps({
  item: Object,
  default: () => ({}),
})
</script>

<style lang="scss">
.monthsBox {
  position: relative;
  display: flex;
  justify-content: space-evenly;
  width: 346px;
  height: 100px;
  padding: 22px 0;
  margin-bottom: 10px;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.08);
  .salesBox {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    .salesText {
      font-size: 14px;
      color: #333;
    }
    .money,
    .order {
      font-size: 20px;
      font-weight: 700;
      .yuan {
        font-size: 16px;
      }
      .dan,
      .fen {
        margin-left: 3px;
        font-weight: 400;
        color: #0db383;
        font-size: 16px;
      }
    }
    .money {
      color: #c80000;
      letter-spacing: -1px;
    }
    .order {
      color: #0db383;
    }
  }
  .shuxian {
    position: absolute;
    top: 50%;
    left: 33%;
    transform: translate(-50%, -50%);
    height: 36px;
    width: 1px;
    background: #e3e3e3;
  }
  .shuxian2 {
    position: absolute;
    top: 50%;
    left: 66%;
    transform: translate(-50%, -50%);
    height: 36px;
    width: 1px;
    background: #e3e3e3;
  }
}
</style>
